<?php
$Admin = array(
    'prefix'=>'admin',
    'namespace' => 'Admin',
    'middleware' => ['web','adminauth']
);

$Admin_login = array(
    'prefix'=>'admin',
    'namespace' => 'Admin',
    'middleware' => ['web']
);
Route::group($Admin_login, function () {
        Route::get("login", "LoginController@getLogin"); // 首页
        Route::get("captcha", "LoginController@getcaptcha"); // 首页
        Route::get("test", "LoginController@gettest");
        Route::post("dologin", "LoginController@postdoLogin"); // 首页
});
//后台路由
Route::group($Admin, function () {
    // 财务管理系统
    Route::Controller("index", "IndexController");
    Route::Controller("siteconfig", "SiteConfigController");
});